package com.zw.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import com.zw.dao.CommodityTypeMapper;
import com.zw.entity.CommodityType;
import com.zw.entity.CommodityTypeExample;
import com.zw.service.CommodityTypeService;

@Service
public class CommodityTypeServiceImpl implements CommodityTypeService{

	@Autowired
	private CommodityTypeMapper commodityTypeMapper;

	@Cacheable(value="CommodityTypeAllCache")
	@Override
	public List<CommodityType> selectCommodityTypeAll() {
		List<CommodityType> list=commodityTypeMapper.selectByExample(new CommodityTypeExample());
		return list;
	}

}
